import request from '@/utils/request'

export function findByPage(query) {
  return request({
    url: '/userRole/findByPage',
    method: 'get',
    params:query //表单数据
  })
}


export function deleteUserRole(userId) {
  return request({
    url: '/userRole/deleteUserRole',
    method: 'get',
    params:{"userId":userId}//form
  })
}
export function addUserRole(data) {
  return request({
    url: '/userRole/addUserRole',
    method: 'post',
    data//json
  })
}

export function updateUserRole(data) {
  return request({
    url: '/userRole/updateUserRole',
    method: 'post',
    data//json
  })
}

export function findAllList() {
  return request({
    url: '/userRole/findAllList',
    method: 'get'
  })
}